
//这里定义reduxstore数据
import thunk from 'redux-thunk'
import {createStore ,combineReducers,applyMiddleware,compose} from 'redux'
import tabBerState from './reducer/tabber'
import order from './reducer/dingdan'
const reducer=combineReducers({//这个地方是拼接各个reducer并生成一个新的reducer
    tab: tabBerState,
    order,
})

//安装thunk插件 使dispatch支持传入function，进行异步操作
const store = createStore(reducer, applyMiddleware(thunk))


export default store